package com.chinacoal.microservice.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.chinacoal.microservice.pojo.CcmsSmartleasingTaxRateTemplate;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * @author zhuliang
 * @version V1.0
 * @Description: 费用税率模板-mybatis-plus接口类
 * @date 2020-12-05 15：22
 */
public interface CcmsSmartleasingTaxRateTemplateMapper extends BaseMapper<CcmsSmartleasingTaxRateTemplate> {

    /**
     * @Description: 修改模板消息（删除）
     * @author zhuliang
     * @date 2020/12/5 16:57
     */
    void updateByDeleteId(@Param("pkTaxRateTemplateId") String pkTaxRateTemplateId,
                          @Param("deleteSign") Byte deleteSign,
                          @Param("lastUpdateDate")Date lastUpdateDate,
                          @Param("lastUpdatedBy") Integer lastUpdatedBy);

    /**
     * @Description: 根据模板名称查询模板id
     * @author zhuliang
     * @date 2021/1/25 17:05
     */
    String getIdByName(@Param("taxRateTemplateName") String taxRateTemplateName);
}
